package com.colorfruit.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

public interface ZuulAuthorizationService {
    /**
     * 验证用户是否有权登录
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
